package com.hdc.sell.exception;

import com.hdc.sell.enums.ResultEnum;

/**
 * @author 郭丽然
 * @program: sell
 * @date 2020/5/6 22:31
 * 功能：
 */
public class SellException extends RuntimeException {
    private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code=resultEnum.getCode();
    }

    public SellException(Integer code, String message) {
        super(message);
        this.code=code;
    }
}
